import request from '@/utils/request'

// 查询运营管理合同列表
export function listContract(query) {
    return request({
        url: '/server/contract/list',
        method: 'get',
        params: query
    })
}

// 查询运营管理合同详细
export function getContract(contractId) {
    return request({
        url: '/server/contract/' + contractId,
        method: 'get'
    })
}

// 新增运营管理合同
export function addContract(data) {
    return request({
        url: '/server/contract',
        method: 'post',
        data: data
    })
}

// 修改运营管理合同
export function updateContract(data) {
    return request({
        url: '/server/contract/update',
        method: 'post',
        data: data
    })
}

// 删除运营管理合同
export function delContract(contractId) {
    return request({
        url: '/server/contract/' + contractId,
        method: 'delete'
    })
}

// 导出运营管理合同
export function exportContract(query) {
    return request({
        url: '/server/contract/export',
        method: 'get',
        params: query
    })
}
